unless defined? APP_ROOT
  APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  $:.unshift APP_ROOT
  $:.unshift File.join(APP_ROOT, 'lib', 'mocha-0.4.0', 'lib')
  $:.unshift File.join(APP_ROOT, 'lib', 'file_sandbox-0.2', 'lib')
end

require 'fileutils'

require 'mocha'
require 'file_sandbox'

class Test::Unit::TestCase
  include FileUtils
  include FileSandbox
end


def breakpoint(b)

  require 'readline'
  while !(line = Readline.readline("> ", true)).strip.eql? 'exit'
    begin
      puts eval(line, b).inspect
    rescue
      puts $!
      next
    end
  end

end

alias :bp :breakpoint